﻿using System.Collections.Generic;
using System.Linq;

namespace Practice.UnitTest
{
    public class MinStack
    {
        private Stack<int> stack = new Stack<int>();

        public MinStack()
        {
        }

        public void Push(int x)
        {
            stack.Push(x);
        }

        public void Pop()
        {
            stack.Pop();
        }

        public int Top()
        {
            return stack.Peek();
        }

        public int GetMin()
        {
            return stack.Min();
        }
    }
}